package com.ss.android.article.base.feature.user.account.view;

import android.view.View;

import com.ss.android.article.base.feature.user.account.presenter.AccountEditPresenter;

final class f implements View.OnClickListener {
    private final a a;

    f(a arg1) {
        this.a = arg1;

    }

    public final void onClick(View arg6) {
        if(this.a.isViewValid()) {
            String v1 = a.m(this.a).b();
            if(com.ss.android.article.base.feature.user.account.view.a.n(this.a).e.userDescription != null
                    && (com.ss.android.article.base.feature.user.account.view.a.o(this.a).e.userDescription.equals(v1))) {
                com.ss.android.article.base.feature.user.account.view.a.p(this.a).a(this.a.getString(com.ss.android.article.browser.R.string.account_introduce_same));
                com.ss.android.article.base.feature.user.account.view.a.m(this.a).d();
                return;
            }

            AccountEditPresenter v0 = com.ss.android.article.base.feature.user.account.view.a.q(this.a);
            ((AccountEditPresenter)v0).k = v1;
            if(v0.hasView()) {
                v0.mView.a(true);
            }

            int v0_1 = com.ss.android.article.base.feature.user.account.view.a.r(this.a).f;
            if(v0_1 == 0) {
                com.ss.android.article.base.feature.user.account.view.a.s(this.a).setVisibility(View.GONE);
                this.a.b(false, v1, true);
                this.a.a(true);
            }
            else {
                if(v0_1 != 1 && v0_1 != 2) {

                }else {
                    com.ss.android.article.base.feature.user.account.view.a.s(this.a).setVisibility(View.VISIBLE);
                    com.ss.android.article.base.feature.user.account.view.a.t(this.a).f();
                }
            }

        com.ss.android.article.base.feature.user.account.view.a.m(this.a).d();
        }
    }
}

